package before;
public class PosNeg {
/**
 * 
 * @param args
 */
	public static void main(String[] args) {
		
		boolean a = posNeg(1, -1, false);
		boolean b = posNeg(1, -1, false);
		boolean c = posNeg(-4, -5, true);
		System.out.println(a);
		System.out.println(b);
		System.out.println(c); 
	}
	public static boolean posNeg(int a, int b, boolean negative) {
		if(negative){
			  return (a<0&&b<0);
			}else{
			  return (a*b<0);
			}
		
	}


}
